node-googlehome
It uses Node.js to communicate with Google Home.
Install
npm
$ npm install node-googlehome --save
yarn
$ yarn add node-googlehome
Usage
const GoogleHome = require('node-googlehome')
GoogleHome.search(1000)
.then(resp => { console.log(resp) })
let device = new GoogleHome.Connecter('192.168.11.13')
device.config({lang: 'ja'})
device.readySpeaker()
.then(() => { })
device.playMedia('http://www.hypertrombones.jp/sample/system7.mp3')
.then(console.log)
.catch(console.log)
device.speak('こんにちは!')
.then(console.log)
.catch(console.log)
Requirements
・Node.js >= v7